<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>添加博文</title>
	<link rel="stylesheet" href="__PUBLIC__/Admin/Css/common.css" />
	<script type="text/javascript" src='__PUBLIC__/Admin/Js/jquery-1.8.2.min.js'></script>
	<script type="text/javascript" src='__PUBLIC__/Admin/Js/common.js'></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/ueditor/ueditor.all.min.js"></script>
	<script>
    $(function(){
        var ue = UE.getEditor('container',{
            serverUrl :'{:U('Admin/Blog/ueditor')}'
        });
    })
    </script>
</head>
<body>
	<div class='status'>
		<span>博文发布</span>
	</div>
	<form action="{:U('runAddBlog')}" method='post'>
		<table class="table">
			<tr>
				<td align='right' width='10%'>标题：</td>
				<td width='20%'><input type="text" name="title" style="width: 300px;" /></td>
				<td align='center' width='10%'>作者：</td>
				<td width='25%'><input type="text" value="小叨" name="author" /></td>
				<td align='center' width='10%'>点击次数：</td>
				<td width='25%'><input type="text" value="100" name="click" /></td>
			</tr>
			<tr>
				<td colspan='6'>
					<script id="container" type="text/plain" style="height:200px;"></script>
				</td>
			</tr>
			<tr>
				<td align="center">关键词:</td>
				<td><input type="text" style="width: 300px;" name="tags" /></td>
				<td align='center'>所属分类：</td>
				<td>
					<select name="cid">
						<option value="">===请选择分类===</option>
						<foreach name='cate' item='v'>
						<option value="{$v.id}">{$v.html}{$v.name}</option>
						</foreach>
					</select>
				</td>
				<td align='center'>博文属性：</td>
				<td>
					<foreach name="attr" item="v">
					<label style="margin-right: 10px;">
						<input type="checkbox" name="type" value="{$v.id}" />{$v.name}&nbsp;&nbsp;
					</label>
					</foreach>
				</td>
			</tr>
			<tr>
				<td align="center">描述:</td>
				<td colspan="5" align="center">
					<textarea name="description" cols="150" rows="1"></textarea>
				</td>
			</tr>
			<tr>
				<td colspan='6' align="center">
					<input class="big-btn" type="submit" value="发布文章" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>